//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Cuadro.h"


//---------------------------------------------------------------------------

#pragma package(smart_init)
Cuadro::Cuadro(){

   TableroCuadro *panel=new TableroCuadro();
   anadeParte(panel);
   panel->setColor(0.8,0.8,0.5);
   panel->traslada(anchoMarcoCuadro,anchoMarcoCuadro,0);

   Tablero *marcoSuperior=new Tablero(anchoCuadro+2*anchoMarcoCuadro,grosorCuadro+1,anchoMarcoCuadro, 3, 7, 7);
   anadeParte(marcoSuperior);
   marcoSuperior->setColor(0.7,0.7,0.0);
   marcoSuperior->traslada(0,altoCuadro+anchoMarcoCuadro,0);

   Tablero *marcoDerecho=new Tablero(anchoMarcoCuadro,grosorCuadro+1,altoCuadro, 3, 7, 7);
   anadeParte(marcoDerecho);
   marcoDerecho->setColor(0.7,0.7,0.0);
   marcoDerecho->traslada(anchoCuadro+anchoMarcoCuadro,anchoMarcoCuadro,0);


   Tablero *marcoInferior=new Tablero(anchoCuadro+2*anchoMarcoCuadro,grosorCuadro+1,anchoMarcoCuadro, 3, 7, 7);
   anadeParte(marcoInferior);
   marcoInferior->setColor(0.7,0.7,0.0);
   //paredIzquierda->traslada(0,altoCuadro+2*anchoMarco,0);


   Tablero *marcoIzquierdo=new Tablero(anchoMarcoCuadro,grosorCuadro+1,altoCuadro, 3, 7, 7);
   anadeParte(marcoIzquierdo);
   marcoIzquierdo->setColor(0.7,0.7,0.0);
   marcoIzquierdo->traslada(0,anchoMarcoCuadro,0);
   /*
   Disco *disco1=new Disco(3,5,4,2);
   anadeParte(disco1);
   disco1->setColor(0.0,1.0,0.0);
   disco1->traslada(15,10,grosorCuadro+0.02);

   Disco *disco2=new Disco(1,3,10,2);
   anadeParte(disco2);
   disco2->setColor(0.0,0.0,1.0);
   disco2->traslada(10,15,grosorCuadro+0.02);
   */



}



